package com.jason.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.jason.demo.pojo.User;

@RestController
@RequestMapping("/user")
public class UserController {
	
	@RequestMapping(value = "/", method = RequestMethod.GET)
	public User getUser() {
		User user = new User();
		user.setId(10);
		user.setUsername("jason");
		return user;
	}
}
